import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JEditorPane;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

import org.jdesktop.application.Application;

import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
* 
*/


public class myMenu extends javax.swing.JFrame {

	
/* The following is JOE's code */
	
	public int foo(int x)
	{
		System.out.println("Hello");
		System.out.println("Hello1");
		System.out.println("Hello2");
		System.out.println("Hello3");
		return x;
		
	}
	

	
	
	
	
	
	
	
	
	
	

	private JPanel zero;
	private JPanel bar;
	private JPanel text;
	private JTable jTable2;
	private JPanel jPanel3;
	private JTable jTable1;
	private JPanel jPanel1;
	private JButton jButton3;
	private JButton jButton1;
	private JButton jButton6;
	private JButton jButton5;
	private JButton jButton4;
	private JButton jButton2;
	private JPanel jPanel2;
	private JLabel jLabel2;
	private JLabel jLabel1;
	private JEditorPane jEditorPane2;
	private JPanel heading;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				myMenu inst = new myMenu();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public myMenu() {
		super();
		initGUI();
	}
	
	

    
	static class Action implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			RM frame = new RM();
			frame.setVisible(true);
			}}
	static class Action2 implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			myMenu frame = new myMenu();
			frame.setVisible(true);
			}}
	static class Action3 implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			search frame = new search();
			frame.setVisible(true);
			}}
	static class ActionAsk implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			askAdvice frame = new askAdvice();
			frame.setVisible(true);
			}}
    
	
	private void initGUI() {
		try {
			GridBagLayout thisLayout = new GridBagLayout();
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			thisLayout.rowWeights = new double[] {0.0, 0.1};
			thisLayout.rowHeights = new int[] {50, 7};
			thisLayout.columnWeights = new double[] {0.0, 0.1};
			thisLayout.columnWidths = new int[] {105, 7};
			getContentPane().setLayout(thisLayout);
			{
				zero = new JPanel();
				getContentPane().add(zero, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				zero.setName("zero");
			}
			{
				heading = new JPanel();
				getContentPane().add(heading, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				heading.setName("heading");
				{
					jLabel2 = new JLabel();
					heading.add(jLabel2);
					jLabel2.setName("jLabel2");
					jLabel2.setPreferredSize(new java.awt.Dimension(355, 32));
				}
			}
			{
				bar = new JPanel();
				GridBagLayout barLayout = new GridBagLayout();
				barLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1};
				barLayout.rowHeights = new int[] {40,40,40,40,40,40};
				barLayout.columnWeights = new double[] {0.1, 0.1, 0.1, 0.1};
				barLayout.columnWidths = new int[] {7};
				bar.setLayout(barLayout);
				getContentPane().add(bar, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				{
					jButton1 = new JButton();
					bar.add(jButton1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
					jButton1.setName("jButton1");
					jButton1.addActionListener(new Action());   
				}
				{
					jButton2 = new JButton();
					bar.add(jButton2, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jButton2.setName("jButton2");
					jButton2.addActionListener(new Action2());   
				}
				{
					jButton3 = new JButton();
					bar.add(jButton3, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jButton3.setName("jButton3");
					jButton3.addActionListener(new Action3 ());   
				}
			}
			{
				text = new JPanel();
				BoxLayout textLayout = new BoxLayout(text, javax.swing.BoxLayout.Y_AXIS);
				text.setLayout(textLayout);
				getContentPane().add(text, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
			}
			{
				jEditorPane2 = new JEditorPane();
				getContentPane().add(jEditorPane2, new GridBagConstraints(1, 1, 2, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
				jEditorPane2.setName("jEditorPane2");
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				jLabel1.setName("jLabel1");
			}
			{
				jPanel2 = new JPanel();
				GridBagLayout jPanel2Layout = new GridBagLayout();
				getContentPane().add(jPanel2, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(30, 0, 0, 0), 0, 0));
				jPanel2.setName("jPanel2");
				jPanel2Layout.rowWeights = new double[] {0.0, 0.1, 0.1, 0.1};
				jPanel2Layout.rowHeights = new int[] {122, 7};
				jPanel2Layout.columnWeights = new double[] {0.0, 0.1, 0.1, 0.1};
				jPanel2Layout.columnWidths = new int[] {259, 7};
				jPanel2.setLayout(jPanel2Layout);
				{
					jPanel1 = new JPanel();
					jPanel2.add(jPanel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jPanel1.setName("jPanel1");
					{
						TableModel jTable1Model = 
								new DefaultTableModel(
										new String[][] { { "One", "Two" }, { "Three", "Four" } },
										new String[] { "Column 1", "Column 2" });
						jTable1 = new JTable();
						jPanel1.add(jTable1);
						jTable1.setModel(jTable1Model);
					}
				}
				{
					jButton4 = new JButton();
					jPanel2.add(jButton4, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
					jButton4.setName("jButton4");
					jButton4.addActionListener(new ActionAsk());   
				}
				{
					jPanel3 = new JPanel();
					jPanel2.add(jPanel3, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					jPanel3.setName("jPanel3");
					{
						TableModel jTable2Model = 
								new DefaultTableModel(
										new String[][] { { "One", "Two" }, { "Three", "Four" } },
										new String[] { "Column 1", "Column 2" });
						jTable2 = new JTable();
						jPanel3.add(jTable2);
						jTable2.setModel(jTable2Model);
					}
				}
			}
			pack();
			this.setSize(517, 339);
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
